package org.pzy.quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

/**
 * @Author: DRevelation
 * @Date: 2022/5/25 10:03
 */
public class MyJob implements Job {
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        System.out.println("======执行任务了.....");
        System.out.println(jobExecutionContext.getJobDetail().getJobDataMap().get("job-params"));
        System.out.println(jobExecutionContext.getTrigger().getJobDataMap().get("trigger-params"));
    }
}
